docker pull manondidi/mycat


docker run -it -d --name mycat -p 8066:8066 -p 9066:9066  --net mynet --ip 172.18.0.8 -m 2048m -v /root/mycat/conf:/usr/local/mycat/conf -v /root/mycat/logs:/usr/local/mycat/logs -e TZ=Asia/Shanghai --privileged=true manondidi/mycat

sleep 10

docker cp mycat:/usr/local/mycat/conf /root/mycat/conf

docker stop mycat 

docker update --restart=always mycat

cp schema.xml /root/mycat/conf

cp server.xml /root/mycat/conf

cp rule.xml /root/mycat/conf


docker start mycat 